rewriting logs in exponential form